package com.aaa.hospital.ManagementEnd.mapper;


import com.aaa.hospital.ManagementEnd.pojo.Docuser;
import com.aaa.hospital.ManagementEnd.pojo.Nurse;
import com.aaa.hospital.ManagementEnd.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface ResetPasswordDao {
  //验证信息
    //用户端
    //查找验证
    User user_find(@Param("uid") Integer uid, @Param("idcard") String idcard);
    //重置密码
      boolean user_reset(@Param("uid") Integer uid, @Param("idcard") String idcard,@Param("password") String  password);
    //医生端
    Docuser docuse_find(@Param("uid") Integer uid, @Param("idcard") String idcard);
    boolean docuse_reset(@Param("uid") Integer uid, @Param("idcard") String idcard,@Param("password") String  password);
   //护士端
    Nurse nurse_find(@Param("uid") Integer uid, @Param("idcard") String idcard);
    boolean nurse_reset(@Param("uid") Integer uid, @Param("idcard") String idcard,@Param("password")  String password);


}
